package com.zzb.projectfactory.framework.role.entity;

import com.zzb.projectfactory.framework.autodoc.annotation.AutoDocField;
import com.zzb.projectfactory.framework.common.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
* 用户角色关系表 实体类
*/
@Table(name = "sys_role_user")
@Entity
public class SysRoleUser extends BaseEntity {
    @Column(name = "role_id")
    @AutoDocField(value = "角色id")
    private String roleId; //角色id
    @Column(name = "user_id")
    @AutoDocField(value = "用户id")
    private String userId; //用户id

    /*----------------------get set 方法----------------------*/
    public String getRoleId() {return roleId;}
    public void setRoleId(String roleId){this.roleId = roleId == null ? null : roleId.trim();}
    public String getUserId() {return userId;}
    public void setUserId(String userId){this.userId = userId == null ? null : userId.trim();}
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "SysRoleUser{" +
        "id='" + getId() + '\'' + ',' + 
        "roleId='" + getRoleId() + '\'' + ',' + 
        "userId='" + getUserId() + '\'' + ',' + 
        "createTime='" + getCreateTime() + '\'' + ',' + 
        "creator='" + getCreator() + '\'' + ',' + 
        "updateTime='" + getUpdateTime() + '\'' + ',' + 
        "updater='" + getUpdater() + '\'' + ',' + 
        "activate='" + getActivate() + '\'' + 
        '}';
    }
}
